package com.xsq.rpc.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName RpcConfigProperties
 * @Description TODO
 * @Author xsq
 * @Date 2020/6/8 10:57
 **/
@ConfigurationProperties(prefix = "rpc")
@Component
public class RpcConfigProperties {

    private String serverUrl;

    private Integer port;

    public String getServerUrl() {
        return serverUrl;
    }

    public void setServerUrl(String serverUrl) {
        this.serverUrl = serverUrl;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }
}
